package com.demo2do.fms.entity.driver;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 *
 * @author Ark
 *
 */
@Entity
@Table(name = "TBL_ALL_DISMISS_LIST")
public class Dismiss {

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "generator")
    @SequenceGenerator(name = "generator", sequenceName = "HIBERNATE_SEQUENCE", allocationSize = 1)
    private Long id;
    
    /** 员工姓名 */
    private String name;
    
    /** 员工身份证号 */
    @Column(name = "CITIZEN_CODE")
    private String citizen;
    
    /** 离职日期 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dismissDate;
    
    /**
     * The default constructor
     */
    public Dismiss() {
    }

    /**
     * @param name
     * @param citizen
     * @param dismissDate
     */
    public Dismiss(String name, String citizen, Date dismissDate) {
        this.name = name;
        this.citizen = citizen;
        this.dismissDate = dismissDate;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the citizen
     */
    public String getCitizen() {
        return citizen;
    }

    /**
     * @return the dismissDate
     */
    public Date getDismissDate() {
        return dismissDate;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @param citizen the citizen to set
     */
    public void setCitizen(String citizen) {
        this.citizen = citizen;
    }

    /**
     * @param dismissDate the dismissDate to set
     */
    public void setDismissDate(Date dismissDate) {
        this.dismissDate = dismissDate;
    }
    
}
